<template>
  <div>
    <el-card shadow="always">
      <el-form>
        <el-form-item label="一级分类">
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="二级分类">
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="三级分类">
          <el-select v-model="value" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
      </el-form>
    </el-card>
    <el-card shadow="always" style="margin-top: 20px">
      <el-button icon="el-icon-plus" type="primary" disabled>添加属性</el-button>
      <el-table border style="width: 100%; margin-top: 20px">
        <el-table-column label="序号" width="80" align="center">
        </el-table-column>
        <el-table-column label="属性名称" width="150"> </el-table-column>
        <el-table-column label="属性值列表"> </el-table-column>
        <el-table-column label="操作" width="150"> </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "Attr",
  data() {
    return {
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
      value: "",
    };
  },
};
</script>

<style lang="css" scoped>
.el-form {
  display: flex;
}
.el-form-item {
  display: flex;
  margin: 0 10px 22px 0;
}
</style>
